
#ifndef __TIMER_H
#define __TIMER_H

#include "gd32f1x0.h"

void vtimerInit(void);

uint32_t vtimerGetCurrentTime_s(void);
uint32_t vtimerGetCurrentTime_ms(void);

bool vtimerIsTimeOut_s(uint32_t *tick, uint32_t delay_time);
bool vtimerIsTimeOut_ms(uint32_t *tick, uint32_t delay_time);

#endif

